﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp01_7._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <style>
        td {
            width: 100px;
            text-align:center;

        }
        th{
            text-align:center;
        }

        #div1 {
            width: 100%;
            margin: 0px 10px 5px 0px;
        }
       
        #userInfo{
            margin-top:20px;
        }

    </style>
    <div id="userInfo">
        <asp:Label ID="Label1" runat="server" Text="当前登录状态："></asp:Label>
        <asp:Label ID="userInforLab" runat="server" Text="未登录" ForeColor="Red"></asp:Label>
    </div>
    <div id="div1">
        <asp:Button ID="addBtn" runat="server" Text="新增" OnClick="addBtn_Click" />&nbsp;&nbsp;&nbsp;
        <asp:Button ID="xqBtn" runat="server" Text="详情" />
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="Id">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="id" SortExpression="Id">
                <HeaderStyle Width="30px" />
                <ItemStyle Width="30px" />
            </asp:BoundField>
            <asp:BoundField DataField="TaskName" HeaderText="任务名称" SortExpression="TaskName" />
            <asp:BoundField DataField="TaskContent" HeaderText="任务内容" SortExpression="TaskContent" />
            <asp:BoundField DataField="TaskStatus" HeaderText="任务状态" SortExpression="TaskStatus" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" SortExpression="Remarks" />
            <asp:CommandField HeaderText="操作" ShowDeleteButton="True" ShowHeader="True" DeleteText="&lt;span onclick=&quot;javaScript:return confirm('确定删除吗？');&quot;&gt;删除&lt;/span&gt;" />
        </Columns>
    </asp:GridView>

</asp:Content>
